﻿@{
    Layout = null;
}
<!DOCTYPE html> 
<html>
    <head>
        <title>@Language.Get("供应商管理")</title>
        @Html.Partial("commonMeta")
        <link rel="stylesheet" href="~/css/product.css?v=@Wholesaler.Common.Version.Get" />
        <link href="~/Css/stock.css?v=@Wholesaler.Common.Version.Get" rel="stylesheet" />
        <link href="~/css/libs/multiple-select.css" rel="stylesheet"> 
        <link href="~/Css/teamorder.css?v=@Wholesaler.Common.Version.Get" rel="stylesheet"/>
    </head>
    <style type="text/css">
        .mod_productType{ display: none;}
    </style>
    <body>
    	<div class="views">
			<div class="view view-main">
				<div class="navbar">
					<div class="navbar-inner">
			            <header id="common_header">
			                <div class="menu_icon_box" id="show_menu_btn">
			                	<em class="menu-btn"></em>
			                </div>
			                <div class="menu_icon_box" id="hide_menu_btn">
			                	<em class="colse-nav-btn"></em>
			                </div>			 
			                <h2>@Language.Get("供应商管理")</h2>
			            </header>
            			@Html.Partial("teammenu")
            			<div class="subnavbar" style="display: block;padding: 0;height:auto;background-color: #fff;">
	            			<!--导航栏start-->
							<div class="wrapper wrapper01" id="retr">
								<div class="scroller">
									<ul class="clearfix" id="categories">
										<li><a class="external" style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("diamond")==true?"inline-block":"none")" data-type="1" data-title="@Language.Get("裸钻")" href="/team/supplier?type=1">@Language.Get("裸钻")</a></li>
										<li><a class="external" style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("inlaysettings")==true?"inline-block":"none")" data-type="7" data-title="@Language.Get("空托")" href="/team/supplier?type=7">@Language.Get("空托")</a></li>
										<li><a class="external" style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("parcel")==true?"inline-block":"none")" data-type="2" data-title="@Language.Get("统包")" href="/team/supplier?type=2">@Language.Get("统包")</a></li>
					                    <li><a class="external" style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("ring")==true?"inline-block":"none")" data-type="3" data-title="@Language.Get("成品")" href="/team/supplier?type=3">@Language.Get("成品")</a></li>
					                    <li><a class="external" style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("gem")==true?"inline-block":"none")" data-type="4" data-title="@Language.Get("彩宝")"  href="/team/supplier?type=4">@Language.Get("彩宝")</a></li>
					                    <li><a class="external" style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("emerald")==true?"inline-block":"none")" data-type="5" data-title="@Language.Get("翡翠")"  href="/team/supplier?type=5">@Language.Get("翡翠")</a></li>
					                    <li><a class="external" style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("primeGold")==true?"inline-block":"none")" data-type="6" data-title="@Language.Get("素金")" href="/team/supplier?type=6" >@Language.Get("素金")</a></li>
									</ul>
								</div>
							</div>
							<!--导航栏end-->
			                <div class="order_list list_status clearfix" id="_sysStatus">
			                  @{
								if(Wholesaler.Common.CommonPage.GetIsHideSupplier() =="1"){
			                  		<ul>
			                  		<!--<li data-value="" class="add_blue"><a href="/Team/SupplierRole" class="external">@Language.Get("角色权限管理")</a></li>-->
			                  		<li data-value="" class="add_blue"><a href="#" onclick="supplierClickUrl(this)" class="external">@Language.Get("角色权限管理")</a></li>
			                  	</ul>
								}
								}
			                  	<span id="show_term_btn" class="add_blue">@Language.Get("筛选")</span>
			                </div>
			                <div class="check_btn_box li_btn_box clearfix">
			                   <ul>
				                   <li><button class="search_btn_b" id="transfer" disabled="disabled">@Language.Get("批量删除")</button></li> <!--onclick='ModifySalesUserID_Js();' -->
				                   @{
								   if(Wholesaler.Common.CommonPage.GetIsHideSupplier() =="1"){
								  	 <li><button class="search_btn_b" id="role_btn" disabled="disabled">@Language.Get("修改角色")</button></li>
								   }
								   }
			                    </ul>
			                </div>
			                <!--固定表头-->
			                <table class="product_table" id="product_table_fixed"> 
                                <thead>
                                    <tr>
                                        <th style='width:8%' class="check_head_box"><div class='check_list_box'><span class='checkbox' id="checkbox_check_all" name='checkbox' lang=''></span></div></th>
                                        <th style='width:10%'>@Language.Get("账号")</th>
                                        <th class='nickname' style='width:12%'>@Language.Get("简称")</th>
                                        <th style='width:12%'>@Language.Get("全称")</th>
                                        <th style='width:12%'>@Language.Get("国家")</th>
                                        <th style='width:10%'>@Language.Get("状态")<i class="sort sort_normal" data-sort="SysStatus"></i></th>
                                    </tr>
                                </thead>
                                <tbody id="stock_body_hide">
									
                                </tbody>
                            </table>
			            </div>
					</div>
			    </div> 
				<div class="pages navbar-through toolbar-through">
		          	<div data-page="index" class="page">
				        <!--内容区start-->
						<div class="page-content" id="app_no_header">			
					         @* 库存列表start *@
			                <div id="inventory" style="background-color: #fff;">
		                        <table class="product_table" id="product_table">
	                                <thead>
	                                    <tr>
	                                        <th style='width:8%' class="check_head_box"><div class='check_list_box'><span class='checkbox' id="checkbox_check_all" name='checkbox' lang=''></span></div></th>
	                                        <th style='width:10%'>@Language.Get("账号")</th>
	                                        <th class='nickname' style='width:12%'>@Language.Get("简称")</th>
	                                        <th style='width:12%'>@Language.Get("全称")</th>
	                                        <th style='width:12%'>@Language.Get("国家")</th>
	                                        <th style='width:10%'>@Language.Get("状态")<i class="sort sort_normal" data-sort="SysStatus"></i></th>
	                                    </tr>
	                                </thead>
	                                <tbody id="stock_body"  class="tab-content">
										
	                                </tbody>
	                            </table>
		                   </div>					
			                <p class="totalcount">@Language.Get("显示前500条")<a class="diasType"></a></p>      
        				</div>
        				<!--内容区end-->
		       		</div>
		      </div>
<!--编辑供应商-->
<!--筛选start-->
<div class="popup customer_filter_box">
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>@Language.Get("搜索")</h5>
         <form class="form-inline" style="padding: 5px 5px 5px 30px;">
            <datalist id="_customerNickName" class="form-control list_search" style="display:none;"></datalist> <!-- 下拉优化 -->
            <div class="form-group">
            	<label>@Language.Get("简称")：</label>
            	<input type="text" id="_supplierCode" list="_customerNickName" class="form-control" placeholder="@Language.Get("简称")"/>
            </div>
            <div class="form-group">
            	<label>@Language.Get("全称")：</label>
           	 	<input class="form-control" type="text" placeholder="@Language.Get("全称")" id="_supplierName"/>
           	</div>
           	<div class="form-group">
            	<label>@Language.Get("取货地址")：</label>
           	 	<input class="form-control" type="text" placeholder="@Language.Get("取货地址")"  id="_deliveryAddress" />
           	</div>
           	<div class="form-group">
            	<label>@Language.Get("国家")：</label>
           	 	<select class="form-control list_search" id="_country">
                    <option value="">@Language.Get("国家")</option>
                    <option value="IND">IND</option>
                    <option value="HK">HK</option>
                    <option value="BEL">BEL</option>
                    <option value="ISR">ISR</option>
                    <option value="BEL">BEL</option>
                    <option value="CHN">CHN</option>
                    <option value="BEL">BEL</option>
                    <option value="USA">USA</option>
                    <option value="CA">CA</option>
                    <option value="UK">UK</option>
                    <option value="UAE">UAE</option>
                    <option value="TL">TL</option>
                    <option value="IT">IT</option>
                </select>
           	</div>
           	<div class="form-group">
            	<label>@Language.Get("现货")：</label>
           	 	<select class="form-control list_search" id="_spotdata">
                    <option value="">@Language.Get("现货")</option>
                    <option value="1">@Language.Get("是")</option>
                </select>
           	</div>
           	<div class="form-group">
            	<label>@Language.Get("状态")：</label>
           	 	<select class="form-control list_search" id="_sysStatus1">
                    <option value="">@Language.Get("状态 ")</option>
                    <option value="1">@Language.Get("正常")</option>
                    <option value="-1">@Language.Get("已删")</option>
                </select>
           	</div>
            <div class="form-btn">
             	<input type="button" class="btn btn-danger supbtn cancel close-popup" value="@Language.Get("取消")" />
	            <input type="button" class="btn btn-danger supbtn" id="confirm_btn" value="@Language.Get("确定")"/>
            </div>
        </form>
   	</div>
</div>
<!--筛选end-->
<!--编辑供应商start-->
<div class="popup supplier_form_box">
	<div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5 id="supplier_form_title">@Language.Get("编辑供应商")</h5>
		<form class="form-inline" name="addForm" method="post" id="form_data" style="padding: 5px 5px 5px 30px;">
		  	<input type="text" id="id_input" style="display: none;"/> 
	    	<div class="form-group">
	            <label for="add_supplierCode"><b class="no_null">*</b>@Language.Get("简称")：</label>
	            <input type="text" class="form-control" id="add_supplierCode" placeholder="@Language.Get("简称")" name="SupplierCode">                    <!--  onblur="UserNameIsExist();" -->
	        </div>
	        <div class="form-group">
	            <label for="add_supplierName"><b class="no_null">*</b>@Language.Get("全称")：</label>
	            <input type="text" class="form-control" id="add_supplierName" placeholder="@Language.Get("全称")" name="SupplierName" />
	        </div>
	        <div class="form-group">
	            <label for="add_deliveryAddress"><b class="no_null">*</b>@Language.Get("取货地址")：</label>
	            <input type="text" class="form-control" id="add_deliveryAddress" placeholder="@Language.Get("取货地址")" name="DeliveryAddress">
	        </div>	
			<div class="form-group">
	            <label for="add_sort"><b class="no_null">*</b>@Language.Get("取货次序")：</label>
	            <input type="number" class="form-control" id="add_sort" placeholder="@Language.Get("取货次序")" name="Sort">
	        </div>
			@{
			if(Wholesaler.Common.CommonPage.GetIsHideSupplier() =="1"){
				<div class="form-group mod_productType">
					<label for="add_rebate">@Language.Get("白钻加点")：</label>
					<input type="text" class="form-control" id="add_rebate" placeholder="@Language.Get("白钻加点")" name="Rebate">
				</div>
				<div class="form-group mod_productType">
					<label for="add_fancyRebate">@Language.Get("彩钻加点")：</label>
					<input type="text" class="form-control" id="add_fancyRebate" placeholder="@Language.Get("彩钻加点")" name="FancyRebate">
				</div>
				<div class="form-group mod_productType">
					<label for="ParcelRebate">统包折扣：</label>
					<input type="text" class="form-control" id="add_parcelRebate" placeholder="统包折扣" name="ParcelRebate">
				</div>
				<div class="form-group mod_productType">
					<label for="RingRebate">成品折扣：</label>
					<input type="text" class="form-control" id="add_ringRebate" placeholder="成品折扣" name="RingRebate">
				</div>
				<div class="form-group mod_productType">
					<label for="GemRebate">彩宝折扣：</label>
					<input type="text" class="form-control" id="add_gemRebate" placeholder="彩宝折扣" name="GemRebate">
				</div>
				<div class="form-group mod_productType">
					<label for="EmeraldRebate">翡翠折扣：</label>
					<input type="text" class="form-control" id="add_emeraldRebate" placeholder="翡翠折扣" name="EmeraldRebate">
				</div>
				<div class="form-group mod_productType">
					<label for="PrimeGoldRebate">素金折扣：</label>
					<input type="text" class="form-control" id="add_primeGoldRebate" placeholder="素金折扣" name="PrimeGoldRebate">
				</div>
			}
			}

	        <div class="form-group">
	            <label for="add_rapnetID" class="purchase-text">RapID：</label>
	            <input type="text" class="form-control" id="add_rapnetID" placeholder="RapID" name="RapnetID">
	        </div>  	    	     	
	        <div class="form-group">
	            <label for="Skype" class="purchase-text">Skype：</label>
	            <input type="text" class="form-control" id="Skype" placeholder="Skype" name="Skype">
	        </div>
	        
	        <div class="form-group">
	            <label for="add_url" class="purchase-text">@Language.Get("网址")：</label>
	            <input type="text" class="form-control" id="add_url" placeholder="@Language.Get("网址")" name="Url">
	        </div>
	        <!---->
	        <div class="form-group">
	            <label for="UserName" class="purchase-text">@Language.Get("帐号")：</label>
	            <input type="text" class="form-control" id="UserName" placeholder="@Language.Get("帐号")" name="Username">
	        </div>
	        <div class="form-group">
	            <label for="Password" class="purchase-text">@Language.Get("密码")：</label>
	            <input type="password" class="form-control" id="Password" placeholder="@Language.Get("密码")" name="Password">
	        </div>
	        <div class="form-group">
	            <label for="add_email" class="purchase-text">@Language.Get("邮箱")：</label>
	            <input type="text" class="form-control" id="add_email" placeholder="@Language.Get("邮箱")" name="Email">
	        </div>
	        <!---->
            <div class="form-group">
                <label for="Country">@Language.Get("国家/地区")：</label>
                <select class="form-control" name="Country" id="add_country">
                    <option value="IND" selected="selected">IND</option>
                    <option value="HK">HK</option>
                    <option value="BEL">BEL</option>
                    <option value="ISR">ISR</option>
                    <option value="BEL">BEL</option>
                    <option value="CHN">CHN</option>
                    <option value="BEL">BEL</option>
                    <option value="USA">USA</option>
                    <option value="CA">CA</option>
                    <option value="UK">UK</option>
                    <option value="UAE">UAE</option>
                    <option value="TL">TL</option>
                    <option value="IT">IT</option>
                </select>
            </div>
	        <div class="form-group">
	            <label for="SysStatus" class="purchase-text">@Language.Get("状态")：</label>
	            <select class="form-control" name="SysStatus" id="add_sysStatus">
	                <option value="1" selected="selected">@Language.Get("正常")</option>
	            </select>
	        </div>
	        <div class="form-group input_button_div">
                <label>@Language.Get("发货时间")：</label>
                <select class="form-control" name="ShipTime" id="add_shipTime"  multiple="multiple">
                    <option value="1">@Language.Get("周一")</option>
                    <option value="2">@Language.Get("周二")</option>
                    <option value="3">@Language.Get("周三")</option>
                    <option value="4">@Language.Get("周四")</option>
                    <option value="5">@Language.Get("周五")</option>
                    <option value="6">@Language.Get("周六")</option>
                    <option value="0">@Language.Get("周日")</option>
                </select>
            </div>
			@{
			if(Wholesaler.Common.CommonPage.GetIsHideSupplier() =="1"){
				<div class="form-group input_button_div">
					<label>@Language.Get("供应商角色")：</label>
					<select class="form-control" name="SupplierRoleID" id="form_RoleName">
					</select>
				</div>
			}
			}

	       <div class="form-group">
	            <label for="Introduction" class="purchase-textarea cus_textarea">@Language.Get("备注")：</label>
	            <textarea class="form-text" id="add_comments" placeholder="@Language.Get("备注")" name="Introduction" cols="60" rows="2"></textarea>
	        </div>
	        <div style="clear: both;"></div>
           <div class="form-btn">
				<input id="reset_btn" class="btn btn-danger supbtn" type="reset" value="@Language.Get("重置")"/>
				<!--id="submit_btn"-->
				<input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/>
			</div>
	        <!--</div>-->
		</form>
	</div>
</div>
<!--编辑供应商end-->
<!-- 角色start --->
<div class="popup" id="batch_RoleName_box">
    <!-- w1  -->
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>@Language.Get("供应商角色")</h5>
        <form class="form-inline" style="padding: 5px 5px 5px 30px;" id="batch_RoleName_form" method="post">
        	<div class="form-inline-edit" style="width:100%;">
        		<div class="form-group input_button_div">
                    <label for="RoleNames" style="width:auto">@Language.Get("供应商角色")：</label>
                    <select class="form-control" name="SupplierRoleID" id="batch_RoleName">
                    </select>
                </div>
                <div class="form-btn">
                	<input type="submit" class="btn btn-danger supbtn"  value="@Language.Get("确定")" />  
                </div>
        	</div>                	
        </form>
    </div>
</div>
<!-- 角色end --->
			</div>
		</div>         
    </body>   
</html>
@Html.Partial("commonTeamJs")
<script src="~/Js/jquery.validate.min.js"></script>
<script src="~/Js/jquery.form.js"></script>
<script src="~/Js/libs/multiple-select.js"></script>
<script>
//	var APP=is_app();
//  var roleID = $.cookie("RoleID");//全局变量
//  var sales="";//全局业务变量
//  var purchases="";//全局采购变量8-27
//  var isDia='@Wholesaler.Common.GetOpenMenu.IsDisplay("diamond")'; 
//	isDia=isDia.toLowerCase();
//	var isParcel='@Wholesaler.Common.GetOpenMenu.IsDisplay("parcel")'; 
//	isParcel=isParcel.toLowerCase();
//	var isRing='@Wholesaler.Common.GetOpenMenu.IsDisplay("ring")'; 
//	isRing=isRing.toLowerCase();
//	var isGem='@Wholesaler.Common.GetOpenMenu.IsDisplay("gem")'; 
//	isGem=isGem.toLowerCase();
//	var isEmerald='@Wholesaler.Common.GetOpenMenu.IsDisplay("emerald")'; 
//	isEmerald=isEmerald.toLowerCase();
//	var isPrimeGold='@Wholesaler.Common.GetOpenMenu.IsDisplay("primeGold")'; 
//	isPrimeGold=isPrimeGold.toLowerCase();
</script>
<!--<script src="~/js/team/customer.js?v=@Wholesaler.Common.Version.Get" type="text/javascript"></script>-->
<!--<script src="~/Js/team/order_handle.js?v=@Wholesaler.Common.Version.Get" type="text/javascript"></script>
<script src="~/Js/team/orderValidate.js?v=@Wholesaler.Common.Version.Get"></script>-->
<script src="~/js/team/supplier.js?v=@Wholesaler.Common.Version.Get" type="text/javascript"></script>

